import { RouteRecordRaw } from 'vue-router'
import type { DynamicRouteProps } from 'src/stores/modules/user'

export const MockDynamicRoutes: DynamicRouteProps[] = [
  {
    route: 'clue',
    menuText: '录单',
    path: 'pages/clueManager/recordOrder/index.vue'
  },
  {
    route: 'clueManage',
    menuText: '录单',
    path: 'pages/clueManager/clueManage/index.vue'
  },
  {
    route: 'departmentStatistics',
    menuText: '录单',
    path: 'pages/dataStatistics/departmentStatistics/index.vue'
  },
  {
    route: 'orderRank',
    menuText: '录单',
    path: 'pages/dataStatistics/orderRank/index.vue'
  },
  {
    route: 'departmentManage',
    menuText: '录单',
    path: 'pages/systemManager/departmentManage/index.vue'
  },
  {
    route: 'userManage',
    menuText: '录单',
    path: 'pages/systemManager/userManage/index.vue'
  }
]

const routes: RouteRecordRaw[] = [
  { path: '/login', name: 'login', component: () => import('pages/login/index.vue') },
  // {
  //   path: '/',
  //   redirect: '/clue',
  //   name: 'main',
  //   component: () => import('layouts/MainLayout.vue'),
  //   children: [
  //     {path: 'clue', component: () => import('pages/clueManager/recordOrder/index.vue')},
  //     {path: 'clueManage', component: () => import('pages/clueManager/clueManage/index.vue')},
  //     {path: 'departmentStatistics', component: () => import('pages/dataStatistics/departmentStatistics/index.vue')},
  //     {path: 'orderRank', component: () => import('pages/dataStatistics/orderRank/index.vue')},
  //     {path: 'departmentManage', component: () => import('pages/systemManager/departmentManage/index.vue')},
  //     {path: 'userManage', component: () => import('pages/systemManager/userManage/index.vue')},
  //   ]
  // },
  {
    path: '/:catchAll(.*)*',
    component: () => import('pages/Error404.vue')
  }
]

export default routes
